﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using DTO;

namespace BUS
{
    public class KhachHangBUS
    {
        public static bool them(KhachHangDTO khach, long maLoaiKhach)
        {
            if (string.Compare(khach.TenKhachHang, "", true) == 0)
                return false;
            return KhachHangDAO.them(khach, maLoaiKhach);
        }
        public static long layMaKhachLonNhat()
        {
            return KhachHangDAO.layMaKhachLonNhat();
        }
        public static bool xoa(long maKhachHang)
        {
            return KhachHangDAO.xoa(maKhachHang);
        }
        public static bool capNhap(KhachHangDTO khach)
        {
            return KhachHangDAO.capNhat(khach);
        }
    }
}
